#include "Controller.h"
#include "Model.h"
#include "Render.h"
#include "D_Input.h"

extern HINSTANCE g_hInst;
extern HWND g_wndHandle;

Controller::Controller()
{
	Init();
}

void Controller::Init()
{
	mod = Model::getInstance();
	din = D_Input::getInstance();
	ren = Render::getInstance();
}

bool Controller::Update()
{
	din->Update();//if dinput update returns false controller update return false
	//din->getMouseInfo();
	//mod->Update();// call model update then model calls quadrant update?
	return true;
}

void Controller::Render()
{
	ren->RenderFrame();
}